package model

type OptionParams struct {
	StartId uint `json:"start_id" form:"start_id" uri:"start_id" default:0`
	EndId   uint `json:"end_id" form:"end_id" uri:"end_id" default:0`
	Type    uint `json:"type" form:"type" uri:"type" default:0`
}

type OptionSchameParams struct {
	Opt  string `json:"opt" form:"opt" validate:"required||oneof=schame trail special all`
	Type int    `json:"type" form:"type" validate:"min=1,max=4"`
	Id   int    `json:"id" form:"id" validate:"-"`
}

type SetUserInfoRedisParams struct {
	Opt  string `json:"opt" form:"opt" validate:"required||string=proof||unique`
	Type int    `json:"type" form:"type" validate:"required"`
	Uid  int    `json:"uid" form:"uid" validate:"required"`
}

type AddAgentParams struct {
	School      string `json:"school" validate:"required"`
	AccountName string `json:"account_name" validate:"required"`
}

type AddUsersParams struct {
	School    string `form:"school" validate:"required"`
	PwdPrefix string `form:"pwd_prefix"`
}
